﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Method
{
    class User
    {
        public string UserName;
        public string Password;
        public string Staff;

        public string userName
        {
            get { return this.UserName; }
            set { this.UserName = value; }
        }
        public string password
        {
            get { return this.Password; }
            set { this.Password = value; }
        }
        public string staff
        {
            get { return this.Staff; }
            set { this.Staff = value; }
        }
        public User(string userName,string password,string staff)
        {
            this.UserName = userName;
            this.Password = password;
            this.Staff = staff;
        }
        public void user()
        {
            Console.WriteLine("用户名：{0}，密码：{1}，所属部门：{2}。",
                this.UserName, this.Password, this.Staff);
        }
    }
}
